/**
* Author: Samfu
* Time  : 上午2:49:45
* Desc  : 
*/
package com.fu.moneybag.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.fu.moneybag.entity.ArticleType;

public interface ArticleTypeDao {

	//public int addArticleType(ArticleType articleType);
	public List<ArticleType> getAllArticleTypes(long userId);
	public int deleteArticleType(long userId, String articleType);
	public int createNewArticleType(ArticleType articleType);
	public int deleteArticleTypes(@Param("userId")int userId, @Param("types")String[] types);
	public List<HashMap<String, Integer>> getArticleGroupByType(@Param("userId")int userId);
	
}
